package com.ruoyi.volunteer_major.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.volunteer_major.mapper.TbVolunteerMajorMapper;
import com.ruoyi.volunteer_major.domain.TbVolunteerMajor;
import com.ruoyi.volunteer_major.service.ITbVolunteerMajorService;

/**
 * 志愿专业信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbVolunteerMajorServiceImpl implements ITbVolunteerMajorService 
{
    @Autowired
    private TbVolunteerMajorMapper tbVolunteerMajorMapper;

    /**
     * 查询志愿专业信息
     * 
     * @param id 志愿专业信息主键
     * @return 志愿专业信息
     */
    @Override
    public TbVolunteerMajor selectTbVolunteerMajorById(Long id)
    {
        return tbVolunteerMajorMapper.selectTbVolunteerMajorById(id);
    }

    /**
     * 查询志愿专业信息列表
     * 
     * @param tbVolunteerMajor 志愿专业信息
     * @return 志愿专业信息
     */
    @Override
    public List<TbVolunteerMajor> selectTbVolunteerMajorList(TbVolunteerMajor tbVolunteerMajor)
    {
        return tbVolunteerMajorMapper.selectTbVolunteerMajorList(tbVolunteerMajor);
    }

    /**
     * 新增志愿专业信息
     * 
     * @param tbVolunteerMajor 志愿专业信息
     * @return 结果
     */
    @Override
    public int insertTbVolunteerMajor(TbVolunteerMajor tbVolunteerMajor)
    {
        return tbVolunteerMajorMapper.insertTbVolunteerMajor(tbVolunteerMajor);
    }

    /**
     * 修改志愿专业信息
     * 
     * @param tbVolunteerMajor 志愿专业信息
     * @return 结果
     */
    @Override
    public int updateTbVolunteerMajor(TbVolunteerMajor tbVolunteerMajor)
    {
        return tbVolunteerMajorMapper.updateTbVolunteerMajor(tbVolunteerMajor);
    }

    /**
     * 批量删除志愿专业信息
     * 
     * @param ids 需要删除的志愿专业信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVolunteerMajorByIds(Long[] ids)
    {
        return tbVolunteerMajorMapper.deleteTbVolunteerMajorByIds(ids);
    }

    /**
     * 删除志愿专业信息信息
     * 
     * @param id 志愿专业信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVolunteerMajorById(Long id)
    {
        return tbVolunteerMajorMapper.deleteTbVolunteerMajorById(id);
    }
}
